<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Reranker Framework (ReFr): reranker::TrainingVectorSet Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Reranker Framework (ReFr)
   
   </div>
   <div id="projectbrief">Reranking framework for structure prediction and discriminative language modeling</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacereranker.html">reranker</a>      </li>
      <li class="navelem"><a class="el" href="classreranker_1_1_training_vector_set.html">TrainingVectorSet</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">reranker::TrainingVectorSet Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="reranker::TrainingVectorSet" -->
<p>A class to hold the several feature vectors needed during training (especially for the perceptron family of algorithms), as well as for performing the updates to those feature vectors (again, with the perceptron family of algorithms in mind).  
 <a href="classreranker_1_1_training_vector_set.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>&gt;</code></p>

<p><a href="classreranker_1_1_training_vector_set-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#aed20b78e2d1864aaeb338f7d2a5c1791">TrainingVectorSet</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new set of feature vectors (models) for use during training.  <a href="#aed20b78e2d1864aaeb338f7d2a5c1791"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#acba29d899d0d74be86ba31dd6b9d8810">~TrainingVectorSet</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys this instance.  <a href="#acba29d899d0d74be86ba31dd6b9d8810"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, <br class="typebreak"/>
double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#a49b3808a509cf2e46edfdc4df6fbd62d">weights</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the "raw" feature weights computed during training.  <a href="#a49b3808a509cf2e46edfdc4df6fbd62d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, <br class="typebreak"/>
double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#a21e449676837c2a0aa03a6749bc9b6f7">average_weights</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the feature vector corresponding to the averaged perceptron.  <a href="#a21e449676837c2a0aa03a6749bc9b6f7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, <br class="typebreak"/>
double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#a98dd763d1e1b3b980e07091488f9b422">GetModel</a> (bool raw) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns either the raw or averaged feature vector, depending on the argument.  <a href="#a98dd763d1e1b3b980e07091488f9b422"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename Collection &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#a362f24bcf6aac291c7e6e74a38815df9">UpdateWeights</a> (const <a class="el" href="classreranker_1_1_time.html">Time</a> &amp;time, const Collection &amp;feature_uids, const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, double &gt; &amp;feature_vector, double scalar)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Increments the weights for the specified collection of features.  <a href="#a362f24bcf6aac291c7e6e74a38815df9"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename Collection &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#a157d68898da5d72f39d36c928c152693">UpdateGoldAndCandidateFeatureAverages</a> (const <a class="el" href="classreranker_1_1_time.html">Time</a> &amp;time, const Collection &amp;gold_feature_uids, const Collection &amp;candidate_feature_uids)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the feature averages the specified pair of feature uid collections, one for a gold reference training instance and the other for a one-best hypothesis.  <a href="#a157d68898da5d72f39d36c928c152693"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#aaf0c6eb3e55fe11773d23589d98187d5">UpdateAllFeatureAverages</a> (const <a class="el" href="classreranker_1_1_time.html">Time</a> &amp;time)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#acd8ae561c7437253df45616432d3a683">RemapFeatureUids</a> (const unordered_map&lt; int, int &gt; &amp;old_to_new_uids)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#af5282652b1f0ee34453543af00f8cee1">PerceptronModelProtoReader</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_training_vector_set.html#a4678b948974965a1d7a15f06b4bfd925">operator&lt;&lt;</a> (ostream &amp;os, const <a class="el" href="classreranker_1_1_training_vector_set.html">TrainingVectorSet</a> &amp;tvs)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A class to hold the several feature vectors needed during training (especially for the perceptron family of algorithms), as well as for performing the updates to those feature vectors (again, with the perceptron family of algorithms in mind). </p>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00059">59</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aed20b78e2d1864aaeb338f7d2a5c1791"></a><!-- doxytag: member="reranker::TrainingVectorSet::TrainingVectorSet" ref="aed20b78e2d1864aaeb338f7d2a5c1791" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classreranker_1_1_training_vector_set.html#aed20b78e2d1864aaeb338f7d2a5c1791">reranker::TrainingVectorSet::TrainingVectorSet</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a new set of feature vectors (models) for use during training. </p>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00063">63</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="acba29d899d0d74be86ba31dd6b9d8810"></a><!-- doxytag: member="reranker::TrainingVectorSet::~TrainingVectorSet" ref="acba29d899d0d74be86ba31dd6b9d8810" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classreranker_1_1_training_vector_set.html#acba29d899d0d74be86ba31dd6b9d8810">reranker::TrainingVectorSet::~TrainingVectorSet</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destroys this instance. </p>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00065">65</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a21e449676837c2a0aa03a6749bc9b6f7"></a><!-- doxytag: member="reranker::TrainingVectorSet::average_weights" ref="a21e449676837c2a0aa03a6749bc9b6f7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt;int,double&gt;&amp; <a class="el" href="classreranker_1_1_training_vector_set.html#a21e449676837c2a0aa03a6749bc9b6f7">reranker::TrainingVectorSet::average_weights</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the feature vector corresponding to the averaged perceptron. </p>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00074">74</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="a98dd763d1e1b3b980e07091488f9b422"></a><!-- doxytag: member="reranker::TrainingVectorSet::GetModel" ref="a98dd763d1e1b3b980e07091488f9b422" args="(bool raw) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt;int,double&gt;&amp; <a class="el" href="classreranker_1_1_training_vector_set.html#a98dd763d1e1b3b980e07091488f9b422">reranker::TrainingVectorSet::GetModel</a> </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>raw</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns either the raw or averaged feature vector, depending on the argument. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">raw</td><td>if true, return the raw model; otherwise, return the averaged perceptron model </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00083">83</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="acd8ae561c7437253df45616432d3a683"></a><!-- doxytag: member="reranker::TrainingVectorSet::RemapFeatureUids" ref="acd8ae561c7437253df45616432d3a683" args="(const unordered_map&lt; int, int &gt; &amp;old_to_new_uids)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_training_vector_set.html#acd8ae561c7437253df45616432d3a683">reranker::TrainingVectorSet::RemapFeatureUids</a> </td>
          <td>(</td>
          <td class="paramtype">const unordered_map&lt; int, int &gt; &amp;&#160;</td>
          <td class="paramname"><em>old_to_new_uids</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00136">136</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="aaf0c6eb3e55fe11773d23589d98187d5"></a><!-- doxytag: member="reranker::TrainingVectorSet::UpdateAllFeatureAverages" ref="aaf0c6eb3e55fe11773d23589d98187d5" args="(const Time &amp;time)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_training_vector_set.html#aaf0c6eb3e55fe11773d23589d98187d5">reranker::TrainingVectorSet::UpdateAllFeatureAverages</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_time.html">Time</a> &amp;&#160;</td>
          <td class="paramname"><em>time</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00128">128</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="a157d68898da5d72f39d36c928c152693"></a><!-- doxytag: member="reranker::TrainingVectorSet::UpdateGoldAndCandidateFeatureAverages" ref="a157d68898da5d72f39d36c928c152693" args="(const Time &amp;time, const Collection &amp;gold_feature_uids, const Collection &amp;candidate_feature_uids)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Collection &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_training_vector_set.html#a157d68898da5d72f39d36c928c152693">reranker::TrainingVectorSet::UpdateGoldAndCandidateFeatureAverages</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_time.html">Time</a> &amp;&#160;</td>
          <td class="paramname"><em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Collection &amp;&#160;</td>
          <td class="paramname"><em>gold_feature_uids</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Collection &amp;&#160;</td>
          <td class="paramname"><em>candidate_feature_uids</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Updates the feature averages the specified pair of feature uid collections, one for a gold reference training instance and the other for a one-best hypothesis. </p>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00115">115</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="a362f24bcf6aac291c7e6e74a38815df9"></a><!-- doxytag: member="reranker::TrainingVectorSet::UpdateWeights" ref="a362f24bcf6aac291c7e6e74a38815df9" args="(const Time &amp;time, const Collection &amp;feature_uids, const FeatureVector&lt; int, double &gt; &amp;feature_vector, double scalar)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Collection &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_training_vector_set.html#a362f24bcf6aac291c7e6e74a38815df9">reranker::TrainingVectorSet::UpdateWeights</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_time.html">Time</a> &amp;&#160;</td>
          <td class="paramname"><em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Collection &amp;&#160;</td>
          <td class="paramname"><em>feature_uids</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, double &gt; &amp;&#160;</td>
          <td class="paramname"><em>feature_vector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scalar</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Increments the weights for the specified collection of features. </p>
<p>Technically, this method adds a scaled version of the specified vector projected into the subspace specified by the collection of feature uid's.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">time</td><td>the current training time </td></tr>
    <tr><td class="paramname">feature_uids</td><td>the set of features to be updated (essentially a subspace into which to project <code>feature_vector</code>) </td></tr>
    <tr><td class="paramname">feature_vector</td><td>the feature vector to be projected into the specified subspace, scaled and then added to the current set of model weights </td></tr>
    <tr><td class="paramname">scalar</td><td>the amount by which to scale the specified subvector</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classreranker_1_1_feature_vector.html#aa732c2a9d4b249b652f881eb57112e1f" title="Modifies this vector so that it equals this vector plus the scaled specified subvector.">FeatureVector::AddScaledSubvector</a> </dd></dl>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00104">104</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="a49b3808a509cf2e46edfdc4df6fbd62d"></a><!-- doxytag: member="reranker::TrainingVectorSet::weights" ref="a49b3808a509cf2e46edfdc4df6fbd62d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt;int,double&gt;&amp; <a class="el" href="classreranker_1_1_training_vector_set.html#a49b3808a509cf2e46edfdc4df6fbd62d">reranker::TrainingVectorSet::weights</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the "raw" feature weights computed during training. </p>
<p>This is essentially the "most recent" perceptron created during training. </p>

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00072">72</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a4678b948974965a1d7a15f06b4bfd925"></a><!-- doxytag: member="reranker::TrainingVectorSet::operator&lt;&lt;" ref="a4678b948974965a1d7a15f06b4bfd925" args="(ostream &amp;os, const TrainingVectorSet &amp;tvs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_training_vector_set.html">TrainingVectorSet</a> &amp;&#160;</td>
          <td class="paramname"><em>tvs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00144">144</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<a class="anchor" id="af5282652b1f0ee34453543af00f8cee1"></a><!-- doxytag: member="reranker::TrainingVectorSet::PerceptronModelProtoReader" ref="af5282652b1f0ee34453543af00f8cee1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classreranker_1_1_perceptron_model_proto_reader.html">PerceptronModelProtoReader</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="training-vector-set_8_h_source.html#l00061">61</a> of file <a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="training-vector-set_8_h_source.html">training-vector-set.H</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Apr 9 2013 11:56:32 for Reranker Framework (ReFr) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
